﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="admin_careerupdate.aspx.cs" Inherits="Web.admin_careerupdate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="jsContent" runat="server">
<script type="text/javascript" language="javascript">
        $(function() {
            initSideNav("nav-career", "admin_career.aspx");
        });
        function setParams() {
            uploader._options.params = { 'thumb': 'career' };
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
 <div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>
                招聘管理</h3>
            <ul class="content-box-tabs">
                <li><a href="admin_career.aspx">列表</a></li>
                <li><a href="admin_careeradd.aspx">添加</a></li>
                <li><a href="#tab1" class="default-tab">更新</a></li>
            </ul>
            <div class="clear">
            </div>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <!-- This is the target div. id must match the href of this div's tab -->
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div class="notification error png_bg" id="noticefail" runat="server">
                            <a href="#" class="close">
                                <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                    alt="close" /></a>
                            <div>
                                修改失败！请检查各个字段是否正确！如果多次失败，请联系技术！谢谢！
                            </div>
                        </div>
                        <div class="notification success png_bg" id="noticesuccess" runat="server">
                            <a href="#" class="close">
                                <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                    alt="close" /></a>
                            <div>
                                修改成功！<a href="admin_career.aspx">立即返回</a>&nbsp;&nbsp;&nbsp;<a href="admin_careeradd.aspx">继续添加</a>
                            </div>
                        </div>
                        <fieldset>
                            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
                            <p>
                                <label>
                                    招聘职位中文名字：</label>
                                <asp:TextBox ID="txbCName" runat="server" CssClass="text-input medium-input"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    招聘职位英文名字：</label>
                                <asp:TextBox ID="txbEName" runat="server" CssClass="text-input medium-input"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    招聘时间：</label>
                                <asp:TextBox ID="txbPublishTime" runat="server" CssClass="text-input medium-input"></asp:TextBox>
                            </p>
                            <p style="min-height: 170px;">
                                <label>
                                    缩略图</label>
                                <span style="height: 140px;"><a class="shortcut-button" href="#uploadimage" id="openerupload"
                                    style="float: left;"><span>
                                        <img src="resources/images/icons/image_add_48.png" alt="icon" /><br />
                                        上传图片 </span></a><span style="margin: 20px; height: 140px;"></span>
                                    <asp:Image ID="imgPicUrl" runat="server" Width="70" Height="70"  /><asp:HiddenField
                                        ID="hfPicUrl" runat="server" Visible="true" />
                                </span>
                            </p>
                            <p>
                                <label>
                                    职位内容</label>
                                <CKEditor:CKEditorControl ID="txbContent" runat="server" Columns="79" CssClass="text-input textarea"
                                    Rows="15" TextMode="MultiLine"></CKEditor:CKEditorControl>
                            </p>
                            <p>
                                <asp:Button ID="btnSubmit" runat="server" CssClass="button" OnClick="btnSubmit_OnClick"
                                    Text="提交" />
                                <input class="button" type="Reset" value="取消" />
                            </p>
                            </p>
                        </fieldset>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div class="" id="uploadimage" style="display: none;">
                    请选择缩略图进行上传，大小请小于70x70！<br />
                    <div id="file-uploader">
                        <noscript>
                            <p>
                                Please enable JavaScript to use file uploader.</p>
                            <!-- or put a simple form for upload here -->
                        </noscript>
                    </div>
                    <div id="btnajaxupload" class="uploadbtnclass">
                    上传
                    </div>
                    <%--<button id="btnajaxupload" value="upload">
                        upload</button>--%>
                    <button id="btnDeleteOldImage" onclick="deletePreImage();"  class="deletebtnclass">
                        删除</button>
                    <div id="file-upload-show" style="display: none;">
                        <img src="" id="image-upload-show" title="预览" />
                    </div>
                </div>
                <div class="clear">
                </div>
                <!-- End .clear -->
            </div>
            <!-- End #tab1 -->
        </div>
        <!-- End .content-box-content -->
    </div>
</asp:Content>
